package webdemo;

import java.util.logging.Handler;
import java.util.logging.LogRecord;

public class TmpHandler extends Handler {
	private static TmpHandler handler;
	public static synchronized TmpHandler getInstance(){
		if (handler == null) {
			handler = new TmpHandler();
		}
		return handler;
	}
	
	@Override
	public void publish(LogRecord record) {
		System.err.println("msg published by tmp handler");
	}

	@Override
	public void flush() {

	}

	@Override
	public void close() throws SecurityException {
	}

}
